<template>
	<view class="box">
		<view class="cleartechnician">
			移除技师
		</view>
		<view class="tecImg">
			<view class="img">
				<image src="../../static/logo.png" mode=""></image>
			</view>
			<text>程玉楼</text>
		</view>
		<view class="state">
			<text class="title">当前状态:</text>
			<text class="cont">可预约</text>
			<view class="appointmentTime">
				<text class="title">可预约时间:</text>
				<view class="dateChoose">
					<picker mode="date" :value="date" start="2015-09-01" end="2020-09-01" @change="DateChange">
						<view class="picker">
							{{date}}∨
						</view>
					</picker>
				</view>
				<view class="dateChoose">
					<picker :range="array" :value="index" @change="bindPickSort">
						<view>{{array[index]}}∨</view>
					</picker>
				</view>
			</view>
			<view class="price">
				<text class="title">价格:</text>
				<text class="priceA">￥1600</text>
			</view>
		</view>
		<view class="tecIntroduce">
			<h3>技师介绍</h3>
			<text>1987年出生，获得整数，获得整数获得整数获得整数获得整数获得整数获得整数获得整数获得整数获得整数获得整数获得整数获得整数获得整数</text>
		</view>
		<view class="evaluationList">
			<view class="">
				评价列表：
			</view>
			<text @click="lookmore">查看更多</text>

		</view>
		<view class="">
			<uni-evaluate :list-data="test" :rate="5" />
		</view>


		<!-- 底部 -->
		<!-- <view class="position">
			<view class="">
				加入购物车
			</view>
			<view class="" @click="yuyue">
				预约
			</view>
		</view> -->
		<view style="width: 100%;height: 100rpx;">

		</view>
	</view>
</template>

<script>
	import uniEvaluate from '../../components/xiujun-evaluate/uni-evaluate.vue';
	export default {
		data() {
			return {
				close:false,//点击遮罩是否关闭
				show:true,//显示关闭按钮
				visible: false,//弹窗控制
				date: '2018-12-25',
				array: ['综合排序', '距离', '星级', '日本'],
				index: 0,
				test: [{
						user_name: '111',
						rate: 3,
						create_time: '2017/1/1',
						content: 'ssss'
					},
					{
						user_name: '111',
						rate: 3,
						create_time: '2017/1/1',
						content: 'ssss'
					}
				]
			}
		},
		methods: {
			//确认预约
			yuyue(){
				this.visible = !this.visible
			},
			//查看更多评论
			lookmore() {
				uni.navigateTo({
					url: "../evaluate/evaluate"
				})
			},
			DateChange(e) {
				this.date = e.detail.value
			},
			bindPickSort: function(e) {
				console.log('picker发送选择改变，携带值为', e.target.value)
				this.index = e.target.value
			},
		},
		components: {
			uniEvaluate
		}
	}
</script>

<style lang="scss">
	.box {
		width: 750rpx;

		.tecImg {
			width: 100%;
			height: 250rpx;
			display: flex;
			justify-content: center;
			align-items: center;
			flex-direction: column;

			.img {
				width: 150rpx;
				height: 150rpx;

				image {
					width: 100%;
					height: 100%;
				}
			}

			text {
				font-size: 28rpx;
				font-weight: bold;
				margin-top: 20rpx;
			}
		}

		.state {
			width: 750rpx;
			padding: 20rpx;
			border-bottom: 2px solid #CECECE;

			.title {
				font-size: 28rpx;
				font-weight: bold;
				margin-bottom: 10rpx;
				color: #333;
			}

			.cont {
				margin-left: 20rpx;
				font-size: 25rpx;
				color: #8E8E8E;
				line-height: 40rpx;
			}

			.appointmentTime {
				margin-top: 20rpx;

				.dateChoose {
					margin-left: 20rpx;
					display: inline-block;
					border: 1px solid #ccc;
					width: 200rpx;
					height: 50rpx;
					text-align: center;
					line-height: 50rpx;
				}
			}

			.price {
				margin-top: 20rpx;

				.priceA {
					margin-left: 20rpx;
					color: red;
					font-size: 30rpx;
					font-weight: bold;
				}
			}

		}

		.tecIntroduce {
			padding: 20rpx;
			border-bottom: 2px solid #CECECE;

			text {
				font-size: 25rpx;
				color: #8E8E8E;
				line-height: 40rpx;
			}
		}

		.evaluationList {
			padding: 20rpx;
			box-sizing: border-box;
			border-bottom: 2px solid #CECECE;
			display: flex;
			justify-content: space-between;

			h3 {
				font-size: 28rpx;
				font-weight: bold;
				margin-bottom: 10rpx;
			}
		}


	}


	//底部
	.position {
		width: 100%;
		height: 100rpx;
		display: flex;
		align-items: center;
		justify-content: space-around;
		position: fixed;
		bottom: 0;
		left: 0;
		border-top: 1rpx solid #a3a3a3;
	}

	.position view {
		width: 30%;
		height: 80rpx;
		border-radius: 10rpx;
		color: #FFFFFF;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.position view:nth-child(1) {
		background-color: #f49c1c;
	}

	.position view:nth-child(2) {
		background-color: #eb673f;
	}
	
	// 模态框按钮
	.modelbotton{
		border-radius: 50rpx;
		background-color: #eb673f;
		color: #FFFFFF;
		width: 50%;
		height: 80rpx;
		display: flex;
		align-items: center;
		justify-content: center;
		margin: 40rpx auto 20rpx;
	}
	.cleartechnician{
		width: 80%;
		height: 80rpx;
		background-color: #FF0000;
		position: fixed;
		bottom: 20rpx;
		left: 50%;
		margin-left: -40%;
		border-radius: 50rpx;
		color: #FFFFFF;
		text-align: center;
		line-height: 80rpx;
	}
</style>
